
<ul class="nav-menu-items">
    <li class="nav-menu-item {if condition=" $maccms.aid eq 1"} selected{/if}">
        <a href="/" title="免费短视频分享大全 - 免费视频首页"><i class="icon-home {$navi}"></i> <span class="{$navspan}">首页</span></a>
    </li>
    <?php
    $icon_arr = [
        "电影"=>"icon-cate-dy","连续剧"=>"icon-cate-ds","综艺"=>"icon-cate-zy","动漫"=>"icon-cate-dm",
        "资讯"=>"iconfont icon-zixun2",
        "短视频"=>"iconfont icon-zhibo",
        "网址"=>"icon-domain"
    ]; 
    ?>
    {maccms:type ids="parent" order="asc" by="sort"}
    <?php if($vo['type_id']<5):?>
    <li class="nav-menu-item {$vo.type_id}={$vo.type_pid} {if condition=" ($vo.type_id eq $GLOBALS['type_id'] ||
        $vo.type_id eq $GLOBALS['type_pid'])"} selected{/if}">
        <a href="{:mac_url_type($vo)}" title="{$vo.type_name}">
            <i class="{$icon_arr[$vo['type_name']]} {$navi}"></i>
            <span class="{$navspan}">{$vo.type_name}</span>
        </a>
    </li>
    <?php endif;?>
    {/maccms:type}
</ul>
